package com.binvshe.binvshe.organization.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.binvshe.binvshe.account.Account;
import com.binvshe.binvshe.organization.tag.TagBean;

import java.util.List;

/**
 * Created by Zoi.
 * E-mail：KyluZoi@gmail.com
 * 2016/9/13
 */
public class OpusListEntity {

    private int id;
    private String title;
    private String media_type;
    /**
     * user_id : 215
     * real_name : null
     * nick_name : 一点也不萌
     * gender : 1
     * portrait : http://static.binvshe.com/static/crawler/1473313046073532.png
     * longitude : 0
     * latitude : 0
     * birthday : null
     * constellation : null
     * phone : 18950520381
     * sign : 胡凯大傻逼
     * province : 福建
     * city : 龙岩
     * coin : 0
     * company : null
     * locked : false
     * initial : Y
     * fans : 0
     * in_club : false
     */

    private Account user;
    private ClubEntity club;
    private String description;
    private String content;
    private boolean recommend;
    private int comment_count;
    private int like_count;
    private boolean state;
    private boolean del;
    private String create_time;
    private String update_time;
    /**
     * id : 1
     * url : image_400*300.png
     * width : 0
     * height : 0
     */

    private List<ImagesEntity> images;
    /**
     * id : 1
     * name : tag1
     */

    private List<TagBean> tags;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMedia_type() {
        return media_type;
    }

    public void setMedia_type(String media_type) {
        this.media_type = media_type;
    }

    public Account getUser() {
        return user;
    }

    public void setUser(Account user) {
        this.user = user;
    }

    public ClubEntity getClub() {
        return club;
    }

    public void setClub(ClubEntity club) {
        this.club = club;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public boolean isRecommend() {
        return recommend;
    }

    public void setRecommend(boolean recommend) {
        this.recommend = recommend;
    }

    public int getComment_count() {
        return comment_count;
    }

    public void setComment_count(int comment_count) {
        this.comment_count = comment_count;
    }

    public int getLike_count() {
        return like_count;
    }

    public void setLike_count(int like_count) {
        this.like_count = like_count;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public boolean isDel() {
        return del;
    }

    public void setDel(boolean del) {
        this.del = del;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    public List<ImagesEntity> getImages() {
        return images;
    }

    public void setImages(List<ImagesEntity> images) {
        this.images = images;
    }

    public List<TagBean> getTags() {
        return tags;
    }

    public void setTags(List<TagBean> tags) {
        this.tags = tags;
    }


    public static class ImagesEntity implements Parcelable {
        private int id;
        private String url;
        private int width;
        private int height;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public int getWidth() {
            return width;
        }

        public void setWidth(int width) {
            this.width = width;
        }

        public int getHeight() {
            return height;
        }

        public void setHeight(int height) {
            this.height = height;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.id);
            dest.writeString(this.url);
            dest.writeInt(this.width);
            dest.writeInt(this.height);
        }

        public ImagesEntity() {
        }

        protected ImagesEntity(Parcel in) {
            this.id = in.readInt();
            this.url = in.readString();
            this.width = in.readInt();
            this.height = in.readInt();
        }

        public static final Parcelable.Creator<ImagesEntity> CREATOR = new Parcelable.Creator<ImagesEntity>() {
            public ImagesEntity createFromParcel(Parcel source) {
                return new ImagesEntity(source);
            }

            public ImagesEntity[] newArray(int size) {
                return new ImagesEntity[size];
            }
        };
    }



}

